package com.sxhalo.fsms.service.impl;

import com.sxhalo.fsms.domain.RedisData;
import com.sxhalo.fsms.domain.TransducerRunningStatus;
import com.sxhalo.fsms.mapper.TransducerRunningStatusMapper;
import com.sxhalo.fsms.service.ITransducerRunningStatusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TransducerRunningStatusServiceImpl implements ITransducerRunningStatusService {

	@Autowired
	private TransducerRunningStatusMapper mapper;
	
	@Override
	public Integer insertSelective(TransducerRunningStatus record) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Integer updateByPrimaryKeySelective(TransducerRunningStatus record) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Integer deleteByPrimaryKey(Object key) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public TransducerRunningStatus selectByPrimaryKey(Object key) {
		return mapper.selectByPrimaryKey(Integer.parseInt(key.toString()));
	}

	@Override
	public List<TransducerRunningStatus> findWhereList(String where, String order) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Integer getCount(String where) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<TransducerRunningStatus> findPagerList(Integer start, Integer length, String where, String order) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Integer saveOrUpdate(List<RedisData> list) {
		if(list.size()==0)
			 return  null;
		return mapper.batchInsertOrUpdate(list);
	}

}
